package com.huawei.appgallery.updatemanager.ui.cardkit.card;

import android.content.Context;
import android.text.TextUtils;
import android.view.View;
import com.huawei.appgallery.foundation.ui.framework.cardkit.bean.CardBean;
import com.huawei.appgallery.updatemanager.ui.cardkit.bean.UpdateRecordCardBean;
import o.czk$a;
import o.eqx;

public class NotRecommendUpdateRecordCard extends UpdateRecordCard {
    public NotRecommendUpdateRecordCard(Context context) {
        super(context);
    }

    public void ˏ(CardBean cardBean) {
        super.ˏ(cardBean);
        if (this.ˋ.ʹ()) {
            ˉ().setVisibility(0);
            ˏ(this.ˋ);
            this.ʻ.setText(this.ˋ.v_());
            ॱ(this.ˋ);
            ˋ(this.ˋ);
            return;
        }
        ˉ().setVisibility(8);
    }

    protected void ॱ(UpdateRecordCardBean updateRecordCardBean) {
        if (updateRecordCardBean.ٴ() == 0 || TextUtils.isEmpty(updateRecordCardBean.ߴ())) {
            super.ॱ(updateRecordCardBean);
            return;
        }
        this.ॱˊ.setText(ˊ(updateRecordCardBean));
        this.ʼ.setSingleLine(true);
        this.ʼ.setText(updateRecordCardBean.ߴ());
        this.ʽ.setVisibility(0);
        eqx.ˎ(this.ʽ, updateRecordCardBean.ՙ());
        if (TextUtils.isEmpty(updateRecordCardBean.ㆍ())) {
            this.ˊॱ.setVisibility(8);
        } else {
            this.ˊॱ.setVisibility(0);
            this.ˊॱ.setText(updateRecordCardBean.ㆍ());
        }
        this.ʼ.setTextColor(this.ʼॱ.getResources().getColor(czk$a.ॱ));
        this.ʼ.setAlpha(1.0f);
    }

    protected void ॱ(View view) {
        super.ॱ(view);
    }
}
